﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Mt.Site.Application.Dto
{
    /// <summary>
    /// 排序顺序
    /// </summary>
    public class SortOrderInput : SortOrderInput<Guid>
    {

    }

    public class SortOrderInput<TPrimaryKey> where TPrimaryKey : struct, IComparable
    {
        [Required]
        public TPrimaryKey Id { get; set; }

        [Required]
        public long MenuId { get; set; }

        [Required]
        public string SortAction { get; set; }
    }
}
